from django.template import Library
from datetime import datetime
register = Library()


@register.simple_tag(name='current', takes_context=True)
def current_time(context):
    return datetime.now().strftime(context['format_str'])


@register.inclusion_tag('teacher/show_list.html')
def show_list(value):
    return {'ls': value}
